package com.qf.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/api")
public class ParamController {
    @RequestMapping("param1")
    public String param1(){
        return "redirect:/hello/test2";
    }
    @RequestMapping("param2")
    public String param2(){
        return "forward:/api/param3";
    }
    @RequestMapping("param3")
    public String param3(){
        return "view/index1";
    }
}
